import java.util.Scanner;

public class grades {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入第一科成绩");
        int num=sc.nextInt();
        System.out.println("请输入第二科成绩");
        int num2=sc.nextInt();
        double sum=num+num2;
        double avg=sum/2;
        System.out.println("总成绩："+sum+"平均分："+avg);
    }
}
